package com.zjgxzh.agentservice.service.impl;

import com.zjgxzh.agentservice.mapper.AgentMapper;
import com.zjgxzh.agentservice.pojo.Agent;
import com.zjgxzh.agentservice.service.AgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgentServiceImpl implements AgentService {
    @Autowired
    private AgentMapper agentMapper;

    public List<Agent> findAgentByUsername(String username){
        return agentMapper.findAgentByUsername(username);
    }

    public void addAgent(Agent agent) {
        agentMapper.addAgent(agent);
    }
}
